#ifndef PATIENT_CLIENT_H
#define PATIENT_CLIENT_H

#include <QWidget>
#include <QDateTimeEdit>
#include <QComboBox>
#include <QListWidget>

class PatientClient : public QWidget
{
    Q_OBJECT
public:
    explicit PatientClient(const QString &name, QWidget *parent = nullptr);
    void setupUI();

private slots:
    void onRequestAppointment(); // 处理预约请求
    void onViewAppointments();   // 查看预约状态

private:
    QString patientName;
    int getPatientId(const QString &name);
    int getCurrentDoctorId();

    QDateTimeEdit *appointmentDateTimeEdit;
    QComboBox *doctorComboBox;           // 用于选择医生的下拉框
    QListWidget *appointmentListWidget;   // 用于显示预约状态的列表框
};

#endif // PATIENT_CLIENT_H
